#ifndef RECBOX_H
#define RECBOX_H

#include <QWidget>
#include "recboxitem.h"
#include <QJsonArray>
#include <QJsonObject>
#include "mlabel.h"

namespace Ui {
class recBox;
}

class recBox : public QWidget
{
    Q_OBJECT

public:
    explicit recBox(QWidget *parent = nullptr);
    ~recBox();

    void initRecBoxUi(QJsonArray data,int row);

    void createRecItem();

private slots:
    void on_btUp_clicked();

    void on_btDown_clicked();

private:
    Ui::recBox *ui;
    int row;
    int col;

    int currentIndex;
    int count;

    QJsonArray imageList;
};

#endif // RECBOX_H
